package com.gxc;

/**
 * 线程测试1.
 *
 * @author 宫新程
 * @since 2018/12/10 10:19 AM
 */
public class Test_Thread_1 {

  public static void main(String[] args) {
    System.out.println("线程开始。。。");

    for (int i = 0; i < 3; i++) {
      new Thread(
          () -> {
            for (int j = 0; j < 3; j++) {
              System.out.println(Thread.currentThread().getName() + "：" + j);
            }
          })
          .start();
    }
    System.out.println(Thread.activeCount());
    System.out.println("线程结束。。。");
  }
}
